package appapi.entity.basic;

import appapi.common.BaseEntity;
import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/05/26 14:45
 */
@Data
@NoArgsConstructor
@TableName("maintenanitem")
public class MaintenanItemEntity extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 自检项目ID
     */
    @NotNull(message = "类别ID不能为空", groups = {UpdateGroup.class})
    @TableId(type = IdType.AUTO)
    private Long mainItemId;

    /**
     * 设备类型
     */
    private Long equipTypeId;

    /**
     * 自检项目名称
     */
    private String itemName;

    /**
     * 备注说明
     */
    private String itemDesc;
}
